# coding:utf-8
# filename: Face.py
# author by: Face

import  sys
class logger(object):
    def __init__(self,filename='Default.log'):
        self.terminal = sys.stdout
        self.log = open(filename,'a')
    def write(self,message):
        self.terminal.write(message)
        self.log.write(message)
    def flush(self):
        pass
sys.stdout=logger('a.txt')

# 九九乘法表：
i = 1
while i < 10:
    j = 1
    while j < i + 1:
        print('%s*%s=%s'%(j,i,j * i),end=" ")
        j +=1
    i +=1
    print()
print()